3 a. What is the GenBank file format, and how does the SeqRecord object in Biopython store DNA 
sequences and their annotations for export? 

The GenBank file format is a widely used format for storing nucleotide sequence data along with its 
associated annotations. It contains information such as sequence features, gene names, product functions, 
and more. A GenBank file typically consists of two main sections: 

1. Sequence Data: The nucleotide or protein sequence. 

2. Annotations: Metadata such as gene names, protein functions, and locations of important 
features (e.g., exons, regulatory regions). 

The SeqRecord object in Biopython is designed to hold both the sequence and its annotations in a 
structured way. It stores the sequence as a Seq object and allows you to attach additional information, such 
as: 

● Annotations: Metadata like gene names, function descriptions, and other biological information. 
● Features: Specific regions of the sequence (e.g., coding regions, exons). 
● ID, Name, and Description: Useful for identifying the sequence in a broader database or file. 

Using the SeqRecord object, you can export DNA sequences along with their annotations to the GenBank 
file format using Biopython’s SeqIO.write() method. 